﻿using System;
using OneMG.Phoenix.Entity;
using OneMG.Phoenix.Respository;
using IBatisNet.DataMapper;
using OneMG.Phoenix.Kernel.IBatisUtil;

namespace OneMG.Phoenix.IBatisRepository
{
    public class AdminUserLogInfoRepository : BaseIBatisDao,IAdminUserLogInfo
    {
        public AdminUserLogInfoRepository()
            : base("yihaoke_newMap.Config")
        {

        }
        public System.Int64 AddAdminUserLogInfo(EAdminUserLogInfo entity)
        {
			string stmtId = "AdminUserLogInfoMap.InsertAdminUserLogInfo";
			 Object obj = base.SqlMapper.Insert(stmtId, entity);
			 return (System.Int64)obj;
        }
        
		public  EAdminUserLogInfo GetByLogID (System.Int64 logID)
        {
			string stmtId = "AdminUserLogInfoMap.SelectByLogID";
			return base.SqlMapper.QueryForObject<EAdminUserLogInfo>(stmtId, logID);
        }
        
        public  void DeleteByLogID (System.Int64 logID)
        {
			string stmtId = "AdminUserLogInfoMap.DeleteByLogID";
			base.SqlMapper.Update(stmtId, logID);
        }
        
        public  void UpdateByLogID (EAdminUserLogInfo entity)
        {
			string stmtId = "AdminUserLogInfoMap.UpdateByLogID";
			base.SqlMapper.Update(stmtId, entity);
        }

    }
}

